package com.quxian.chambercommerce.admin_action;

import java.util.Date;

import com.quxian.chambercommerce.abstract_action.AbsPublicNoticeAction;
import com.quxian.chambercommerce.bean.PublicNoticeEntity;
import com.quxian.chambercommerce.pagination.PaginationList;
import com.quxian.chambercommerce.searchCondition.CommonSearchBean;


/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-11-9
 * Time: 下午9:56
 * To change this template use File | Settings | File Templates.
 */
public class AdminPublicNoticeAction extends AbsPublicNoticeAction {

    private PublicNoticeEntity publicNoticeEntry;
    private String content;
    private String title;
    private Boolean isShow;
    private Date createDatetime;
    private int staffId;
    private int viewCount;
    private int typeId;
    private int id;
    
    private CommonSearchBean searchBean;

    public String createPublicNoticeInit(){

           return null;
      }

    public String createPublicNotice(){


        return null;
    }
    
    public String list()
    {
    	//ActionContext.getContext().put("dataList", publicNoticeService.getPublicNoticeList(searchBean));
    	PaginationList.createPaginationList(publicNoticeService.getPublicNoticeList(searchBean), searchBean);
    	return SUCCESS;
    }


    /**
     * getter and setter methods
     * @return
     */
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Boolean getShow() {
        return isShow;
    }

    public void setShow(Boolean show) {
        isShow = show;
    }

    public Date getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(Date createDatetime) {
        this.createDatetime = createDatetime;
    }

    public int getStaffId() {
        return staffId;
    }

    public void setStaffId(int staffId) {
        this.staffId = staffId;
    }

    public int getViewCount() {
        return viewCount;
    }

    public void setViewCount(int viewCount) {
        this.viewCount = viewCount;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public PublicNoticeEntity getPublicNoticeEntry() {
        return publicNoticeEntry;
    }

    public void setPublicNoticeEntry(PublicNoticeEntity publicNoticeEntry) {
        this.publicNoticeEntry = publicNoticeEntry;
    }
    public void setSearchBean(CommonSearchBean searchBean)
	{
		this.searchBean = searchBean;
	}
    public CommonSearchBean getSearchBean()
	{
		return searchBean;
	}
}
